package com.classroom;

public class StringDemo2 {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 1000000; i++) {
            stringBuilder.append("s");
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);

    }
}
